package view.guitare;

import javax.swing.GroupLayout;
import javax.swing.JPanel;


public class GuitarePanel extends JPanel {

	private NeckPanel neckPanel;
	private InformationPanel informationPanel;
	
	private GroupLayout groupLayout;
	
	public GuitarePanel() {
		super();
		initComponents();
	}

	private void initComponents() {
		this.informationPanel = new InformationPanel();
		this.neckPanel = new NeckPanel(this.informationPanel);
		this.groupLayout = new GroupLayout(this);
		this.setLayout(this.groupLayout);
		
		groupLayout.setAutoCreateContainerGaps(true);
		groupLayout.setAutoCreateGaps(true);
		
		groupLayout.setVerticalGroup(groupLayout.createSequentialGroup()
				.addComponent(this.neckPanel)
				.addComponent(this.informationPanel)
				);
		
		groupLayout.setHorizontalGroup(groupLayout.createParallelGroup(GroupLayout.Alignment.LEADING)
				.addComponent(this.neckPanel)
				.addComponent(this.informationPanel)
				);
	}
}
